﻿using System;
using System.Collections.Generic;
using System.Text;

using YouHP.Model;

namespace YouHP.IDAL
{
    public interface INewsInfo
    {
        bool AddNewsBulletin(NewsInfo newsInfo);
        bool DeleteNewsBulletin(int Id);
        NewsInfo GetNewsBulletinById(int Id);
        bool UpdateNewsBulletin(NewsInfo newsInfo);
        List<NewsInfo> GetNewsList();
        List<NewsInfo> GetBullentinList();

        /*新闻分页检索, 输出符合条件的总新闻条数*/
        List<NewsInfo> GetNewsInfoList(int pageSize, int pageIndex, string condStr, string orderStr, out int count);
    }
}
